package my.servlet;

import java.util.HashMap;
import java.util.LinkedHashMap;

public class PageView {

	static {
		System.out.println("this is pageView");
	}

	private String url;

	private HashMap<String, Object> attributeMap = new LinkedHashMap<String, Object>();

	public PageView addObject(String attributeName, Object attributeValue) {
		this.attributeMap.put(attributeName, attributeValue);
		return this;
	}

	public PageView() {
	}

	public PageView(String url) {
		this.url = url;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public HashMap<String, Object> getAttributeMap() {
		return attributeMap;
	}

}
